package com.vast.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.vast.system.entity.SuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

@ApiModel(value = "com.vast.admin.entity.TempleteRecord")
@Data
@TableName(value = "templete_record")
public class TempleteRecord extends SuperEntity implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "null")
    private Long id;

    /**
     * 模板id
     */
    @TableField(value = "templete_id")
    @ApiModelProperty(value = "模板id")
    private Long templeteId;

    /**
     * 模板路径
     */
    @TableField(value = "templete_path")
    @ApiModelProperty(value = "模板路径")
    private String templetePath;

    /**
     * 模板pdf路径
     */
    @TableField(value = "templete_pdf_path")
    @ApiModelProperty(value = "模板pdf路径")
    private String templetePdfPath;

    /**
     * 模板状态（0模板解析中 1草稿 2参数设置完成）
     */
    @TableField(value = "templete_status")
    @ApiModelProperty(value = "模板状态（0模板解析中 1草稿 2参数设置完成）")
    private Integer templeteStatus;

    /**
     * 企业方
     */
    @TableField(value = "company_part")
    @ApiModelProperty(value = "企业方")
    private String companyPart;

    /**
     * 客户方
     */
    @TableField(value = "customer_part")
    @ApiModelProperty(value = "客户方")
    private String customerPart;

    /**
     * 丙方
     */
    @TableField(value = "third_part")
    @ApiModelProperty(value = "丙方")
    private String thirdPart;

    @TableField(value = "placeholder_sort")
    @ApiModelProperty(value = "排序")
    private String placeholderSort;

    /**
     * 是否为当前使用（0否 1是）
     */
    @TableField(value = "is_use")
    @ApiModelProperty(value = "是否为当前使用（0否 1是）")
    private Integer isUse;

    /**
     * 扣费方式（1按模板计费 2按合同金额计费）
     */
    @TableField(value = "cost_type")
    @ApiModelProperty(value = "扣费方式（1按模板计费 2按合同金额计费）")
    private Integer costType;

    /**
     * 模板金额
     */
    @TableField(value = "pay_amount")
    @ApiModelProperty(value = "模板金额")
    private Double payAmount;

    /**
     * 合同金额比例
     */
    @TableField(value = "pay_ratio")
    @ApiModelProperty(value = "合同金额比例")
    private Double payRatio;

    @TableField(value = "min_amount")
    @ApiModelProperty(value = "最低金额")
    private Double minAmount;

//    /**
//     * 删除标记（0删除 1未删除）
//     */
//    @TableField(value = "valid")
//    @ApiModelProperty(value = "删除标记（0删除 1未删除）")
//    private Integer valid;
//
//    /**
//     * 创建时间
//     */
//    @TableField(value = "create_time")
//    @ApiModelProperty(value = "创建时间")
//    private Date createTime;
//
//    /**
//     * 创建人
//     */
//    @TableField(value = "create_by")
//    @ApiModelProperty(value = "创建人")
//    private Long createBy;

    private static final long serialVersionUID = 1L;

    public static final String COL_TEMPLETE_ID = "templete_id";

    public static final String COL_TEMPLETE_PATH = "templete_path";

    public static final String COL_TEMPLETE_PDF_PATH = "templete_pdf_path";

    public static final String COL_TEMPLETE_STATUS = "templete_status";

    public static final String COL_COMPANY_PART = "company_part";

    public static final String COL_CUSTOMER_PART = "customer_part";

    public static final String COL_THIRD_PART = "third_part";

    public static final String COL_IS_USE = "is_use";


}